package net.zjitc.service.Impl;

import net.zjitc.mapper.OrderItemMapper;
import net.zjitc.pojo.OrderItem;
import net.zjitc.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class OrderItemServiceImpl implements OrderItemService{

    @Autowired
    OrderItemMapper orderItemMapper;
    @Override
    public List<OrderItem> findByOId(String id) {
        return orderItemMapper.findByOId(id);
    }

    @Override
    public void add(OrderItem orderItem) {
        orderItemMapper.add(orderItem);
    }

}
